package me.rosuh.filepicker

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.FrameLayout

class DemoActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_demo)
        val filePickerFragment = FilePickerFragment()
        val transaction=supportFragmentManager.beginTransaction()
        if (!filePickerFragment.isAdded){
            transaction.add(R.id.layout_container,filePickerFragment)
            transaction.commit()
        }
    }
}